package com.xingkeduo.model.param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.xingkeduo.model.param.common.BaseParam;

public class MarketingParam extends BaseParam{
    /** 主键*/
    private Long id;

    /** 类型 0 券，1 卡，2 券包*/
    private Integer marketingType;

    /** 服务类型 
优惠券
GENERAL_COUPON：优惠券， GIFT：兑换券， DISCOUNT：折扣券， CASH：代金券，  GROUPON：团购券 ，FIXED:一口价，FREE:免费券
FREQUENCY：服务次卡，*/
    private String serviceType;

    /** 名称*/
    private String name;

    /** 副标题，字数上限为18个汉字。*/
    private String subTitle;

    /** 此优惠卷支持服务ids（0代表全部服务）*/
    private String supportServprodIds;
    /** 券包类型 （只适用用券包）1自有优惠包，2美团点评，3口碑, 4招行，5京东,6天猫,7其他*/
    private Integer couponBagType;

    /** 第三方业务id（只适用用券包）*/
    private String thirdBizId;

    /** 券面额*/
    private BigDecimal couponAmount;

    /** 使用门槛,如果无起用门槛则填0。示例值:0*/
    private BigDecimal leastCost;

    /** 领取范围 (0 全部用户，1 星客多新用户，2 门店新用户)*/
    private Integer receiveType;

    /** 初始券库存*/
    private Integer stockQuantity;

    /** 当前库存*/
    private Integer surplusQuantity;

    /** 领取开始时间*/
    private Date receiveStartTime;

    /** 领取结束时间*/
    private Date receiveEndTime;

    /** 每人每天可领券的数量限制,不填写默认为0。*/
    private Integer getLimitDay;

    /** 每人累计可领券的数量限制,不填写默认为0。*/
    private Integer getLimitTotal;

    /** 此优惠卷使用门店ids（0代表全部店铺）*/
    private String storeIds;

    /** 使用类型，0 相对时间，1 固定时间 （如 0 则券使用截止时间以券开始时间use_start_time计算，1 以用户实际领取时间计算）*/
    private Integer useType;

    /** 使用开始时间（0 无使用开始时间限制）*/
    private Date useStartTime;
    
    /** 使用截止日期*/
    private Date useEndTime;

    /** 使用截止周期 单位：天*/
    private Integer usePeriod;

    /** 每人每天使用次数，0无限制*/
    private Integer useLimitDay;

    /** 每人累计使用次数，0无限制*/
    private Integer useLimitTotal;

    /** 优惠时间段:代表所有的星期的id（0周日，1周一，2周二，3周三，4周四，5周五，6周六）
代表每天的小时数字

示例： [{
	     “week”:”1,2”,
     	     “hour”:[{
			  “time_start”: “09”,
			  “time_end”:”12”
			 }…]
	   }…]*/
    private String weekHourIds;

    /** 优惠承担类型（0 按比例承担，1 按固定金额承担）*/
    private Integer preferentialUndertakeType;

    /** 门店承担金额（配合优惠承担类型使用 ）单位元：如果是比例需要转换成具体金额*/
    private BigDecimal storePreferentialUndertake;

    /** 总部承担金额 （配合优惠承担类型使用 ）单位分：如果是比例需要转换成具体金额*/
    private BigDecimal headquartersPreferentialUndertake;

    /** 成本归属方（部门）*/
    private Long departmentPostId;

    /** 部门名称*/
    private String departmentPostName;

    /** 内部说明（申请原因）*/
    private String applyMemo;
    
    private String useMomo;

    /** 退款类型 （0 退款退券，1 退款不退券）*/
    private Integer refundType;

    /** 卡卷状态--0.初始 1.已上架 2.已下架*/
    private Integer status;

    /** 申请建券人id*/
    private Long applicantId;

    /** 申请人名称*/
    private String applicantName;
    
    /** 券状态**/
    
    private String conponStatus;
    
    /** 是否开启兑换码兑换 （只适用用券包）0否，1是*/
    private Integer isOpenConvert;

    /** 此优惠券支持的服务名称*/
    private String supportServprodNames;

    /** 支持的卡/券集合 （只适用用券包）*/
    private String supportMarketingIds;
    
    private String marketingInfo;
    /** 此优惠卷使用门店名称*/
    private String storeNames;
    
    /** 三方核销门店*/
    private String thirdStoreIds;

    /** 三方核销门店*/
    private String thirdStoreNames;
    
    /** 是否启用售卖0不启用，1启用*/
    private Integer sellEnable;

    /** 售卖价格*/
    private BigDecimal sellPrice;

    /** 售卖门店*/
    private String sellStoreIds;
    
    private List<MarketingRelevantParam> marketingRelevantParams;
    /**活动时刻*/
    private List<ActivityDaysParam> activityDaysParams;
    
    private String couponInfo;
    
    private String cardInfo;
    
    private String bannerUrl;
    
    public String getStoreNames() {
		return storeNames;
	}

	public void setStoreNames(String storeNames) {
		this.storeNames = storeNames;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getMarketingType() {
        return marketingType;
    }

    public void setMarketingType(Integer marketingType) {
        this.marketingType = marketingType;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType == null ? null : serviceType.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle == null ? null : subTitle.trim();
    }

    public String getSupportServprodIds() {
        return supportServprodIds;
    }

    public void setSupportServprodIds(String supportServprodIds) {
        this.supportServprodIds = supportServprodIds == null ? null : supportServprodIds.trim();
    }

    public Integer getCouponBagType() {
        return couponBagType;
    }

    public void setCouponBagType(Integer couponBagType) {
        this.couponBagType = couponBagType;
    }

    public String getThirdBizId() {
        return thirdBizId;
    }

    public void setThirdBizId(String thirdBizId) {
        this.thirdBizId = thirdBizId == null ? null : thirdBizId.trim();
    }

    public BigDecimal getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(BigDecimal couponAmount) {
        this.couponAmount = couponAmount;
    }

    public BigDecimal getLeastCost() {
        return leastCost;
    }

    public void setLeastCost(BigDecimal leastCost) {
        this.leastCost = leastCost;
    }

    public Integer getReceiveType() {
        return receiveType;
    }

    public void setReceiveType(Integer receiveType) {
        this.receiveType = receiveType;
    }

    public Integer getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Integer stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public Integer getSurplusQuantity() {
        return surplusQuantity;
    }

    public void setSurplusQuantity(Integer surplusQuantity) {
        this.surplusQuantity = surplusQuantity;
    }

    public Date getReceiveStartTime() {
        return receiveStartTime;
    }

    public void setReceiveStartTime(Date receiveStartTime) {
        this.receiveStartTime = receiveStartTime;
    }

    public Date getReceiveEndTime() {
        return receiveEndTime;
    }

    public void setReceiveEndTime(Date receiveEndTime) {
        this.receiveEndTime = receiveEndTime;
    }

    public Integer getGetLimitDay() {
        return getLimitDay;
    }

    public void setGetLimitDay(Integer getLimitDay) {
        this.getLimitDay = getLimitDay;
    }

    public Integer getGetLimitTotal() {
        return getLimitTotal;
    }

    public void setGetLimitTotal(Integer getLimitTotal) {
        this.getLimitTotal = getLimitTotal;
    }

    public String getStoreIds() {
        return storeIds;
    }

    public void setStoreIds(String storeIds) {
        this.storeIds = storeIds == null ? null : storeIds.trim();
    }

    public Integer getUseType() {
        return useType;
    }

    public void setUseType(Integer useType) {
        this.useType = useType;
    }

    public Date getUseStartTime() {
        return useStartTime;
    }

    public void setUseStartTime(Date useStartTime) {
        this.useStartTime = useStartTime;
    }

    public Integer getUsePeriod() {
        return usePeriod;
    }

    public void setUsePeriod(Integer usePeriod) {
        this.usePeriod = usePeriod;
    }

    public Integer getUseLimitDay() {
        return useLimitDay;
    }

    public void setUseLimitDay(Integer useLimitDay) {
        this.useLimitDay = useLimitDay;
    }

    public Integer getUseLimitTotal() {
        return useLimitTotal;
    }

    public void setUseLimitTotal(Integer useLimitTotal) {
        this.useLimitTotal = useLimitTotal;
    }

    public String getWeekHourIds() {
        return weekHourIds;
    }

    public void setWeekHourIds(String weekHourIds) {
        this.weekHourIds = weekHourIds == null ? null : weekHourIds.trim();
    }

    public Integer getPreferentialUndertakeType() {
        return preferentialUndertakeType;
    }

    public void setPreferentialUndertakeType(Integer preferentialUndertakeType) {
        this.preferentialUndertakeType = preferentialUndertakeType;
    }

    public Long getDepartmentPostId() {
        return departmentPostId;
    }

    public void setDepartmentPostId(Long departmentPostId) {
        this.departmentPostId = departmentPostId;
    }

    public String getDepartmentPostName() {
        return departmentPostName;
    }

    public void setDepartmentPostName(String departmentPostName) {
        this.departmentPostName = departmentPostName == null ? null : departmentPostName.trim();
    }

    public String getApplyMemo() {
        return applyMemo;
    }

    public void setApplyMemo(String applyMemo) {
        this.applyMemo = applyMemo == null ? null : applyMemo.trim();
    }

    public Integer getRefundType() {
        return refundType;
    }

    public void setRefundType(Integer refundType) {
        this.refundType = refundType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName == null ? null : applicantName.trim();
    }
    
    public String getConponStatus() {
		return conponStatus;
	}

	public void setConponStatus(String conponStatus) {
		this.conponStatus = conponStatus;
	}
	
	public Integer getIsOpenConvert() {
		return isOpenConvert;
	}

	public void setIsOpenConvert(Integer isOpenConvert) {
		this.isOpenConvert = isOpenConvert;
	}


	public String getSupportServprodNames() {
		return supportServprodNames;
	}

	public void setSupportServprodNames(String supportServprodNames) {
		this.supportServprodNames = supportServprodNames;
	}

	public String getSupportMarketingIds() {
		return supportMarketingIds;
	}

	public void setSupportMarketingIds(String supportMarketingIds) {
		this.supportMarketingIds = supportMarketingIds;
	}
	
	public List<MarketingRelevantParam> getMarketingRelevantParams() {
		return marketingRelevantParams;
	}

	public void setMarketingRelevantParams(List<MarketingRelevantParam> marketingRelevantParams) {
		this.marketingRelevantParams = marketingRelevantParams;
	}
	
	public String getMarketingInfo() {
		return marketingInfo;
	}

	public void setMarketingInfo(String marketingInfo) {
		this.marketingInfo = marketingInfo;
	}
	
	public List<ActivityDaysParam> getActivityDaysParams() {
		return activityDaysParams;
	}

	public void setActivityDaysParams(List<ActivityDaysParam> activityDaysParams) {
		this.activityDaysParams = activityDaysParams;
	}
	
    public BigDecimal getStorePreferentialUndertake() {
		return storePreferentialUndertake;
	}

	public void setStorePreferentialUndertake(BigDecimal storePreferentialUndertake) {
		this.storePreferentialUndertake = storePreferentialUndertake;
	}

	public BigDecimal getHeadquartersPreferentialUndertake() {
		return headquartersPreferentialUndertake;
	}

	public void setHeadquartersPreferentialUndertake(BigDecimal headquartersPreferentialUndertake) {
		this.headquartersPreferentialUndertake = headquartersPreferentialUndertake;
	}

	public Long getApplicantId() {
		return applicantId;
	}

	public void setApplicantId(Long applicantId) {
		this.applicantId = applicantId;
	}

	public String getUseMomo() {
		return useMomo;
	}

	public void setUseMomo(String useMomo) {
		this.useMomo = useMomo;
	}

	public Date getUseEndTime() {
		return useEndTime;
	}

	public void setUseEndTime(Date useEndTime) {
		this.useEndTime = useEndTime;
	}

	public String getCouponInfo() {
		return couponInfo;
	}

	public void setCouponInfo(String couponInfo) {
		this.couponInfo = couponInfo;
	}

	public String getCardInfo() {
		return cardInfo;
	}

	public void setCardInfo(String cardInfo) {
		this.cardInfo = cardInfo;
	}

	public String getThirdStoreIds() {
		return thirdStoreIds;
	}

	public void setThirdStoreIds(String thirdStoreIds) {
		this.thirdStoreIds = thirdStoreIds;
	}

	public String getThirdStoreNames() {
		return thirdStoreNames;
	}

	public void setThirdStoreNames(String thirdStoreNames) {
		this.thirdStoreNames = thirdStoreNames;
	}
	
	public Integer getSellEnable() {
		return sellEnable;
	}

	public void setSellEnable(Integer sellEnable) {
		this.sellEnable = sellEnable;
	}

	public BigDecimal getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(BigDecimal sellPrice) {
		this.sellPrice = sellPrice;
	}

	public String getSellStoreIds() {
		return sellStoreIds;
	}

	public void setSellStoreIds(String sellStoreIds) {
		this.sellStoreIds = sellStoreIds;
	}

	public String getBannerUrl() {
		return bannerUrl;
	}

	public void setBannerUrl(String bannerUrl) {
		this.bannerUrl = bannerUrl;
	}

	public static enum MarketingRefundTypeEnum {
    	//0 退款退券，1 退款不退券
    	UNKNOWN("UNKNOWN","未知",-1),//未知；
    	RETURN_COUPON("RETURN_COUPON","退款退券",0),
    	UOT_RETURN_COUPON("UOT_RETURN_COUPON","退款不退券",1);
    	
		
		private String statusType;
		private String desc;
		private int code;
		
		public String getStatusType() {
			return statusType;
		}

		public void setStatusType(String statusType) {
			this.statusType = statusType;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}
		
		private MarketingRefundTypeEnum(String statusType, String desc,int code) {
			this.statusType=statusType;
			this.desc = desc;
			this.code = code;
		}

		public static MarketingRefundTypeEnum parse(String statusType) {
			if(StringUtils.isBlank(statusType)) {
				return UNKNOWN;
			}
			for (MarketingRefundTypeEnum marketingRefundTypeEnum : values()) {
				if (statusType.equalsIgnoreCase(marketingRefundTypeEnum.getStatusType())) {
					return marketingRefundTypeEnum;
				}
			}
			return UNKNOWN;
		}
		public static MarketingRefundTypeEnum parseStatus(int code) {
			for (MarketingRefundTypeEnum marketingRefundTypeEnum : values()) {
				if (code==marketingRefundTypeEnum.getCode()) {
					return marketingRefundTypeEnum;
				}
			}
			return UNKNOWN;
		}

	}
    
	public static enum MarketingTypeEnum {
    	//卡卷状态--0 券，1 卡，2 券包
    	UNKNOWN("UNKNOWN","未知",-1,-1),//未知；
    	COUPON("COUPON","券",0,1),
    	CARD("CARD","卡",1,2),
    	COUPON_BAG("COUPON_BAG","券包",2,3);
    	
		
		private String statusType;
		private String desc;
		private int code;
		private int orderCode;
		
		public String getStatusType() {
			return statusType;
		}

		public void setStatusType(String statusType) {
			this.statusType = statusType;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}
		
		public int getOrderCode() {
			return orderCode;
		}

		public void setOrderCode(int orderCode) {
			this.orderCode = orderCode;
		}

		private MarketingTypeEnum(String statusType, String desc,int code,int orderCode) {
			this.statusType=statusType;
			this.desc = desc;
			this.code = code;
			this.orderCode = orderCode;
		}

		public static MarketingTypeEnum parse(String statusType) {
			if(StringUtils.isBlank(statusType)) {
				return UNKNOWN;
			}
			for (MarketingTypeEnum marketingTypeEnum : values()) {
				if (statusType.equalsIgnoreCase(marketingTypeEnum.getStatusType())) {
					return marketingTypeEnum;
				}
			}
			return UNKNOWN;
		}
		public static MarketingTypeEnum parseStatus(int code) {
			for (MarketingTypeEnum marketingTypeEnum : values()) {
				if (code==marketingTypeEnum.getCode()) {
					return marketingTypeEnum;
				}
			}
			return UNKNOWN;
		}
		public static MarketingTypeEnum parseOrderStatus(int orderCode) {
			for (MarketingTypeEnum marketingTypeEnum : values()) {
				if (orderCode==marketingTypeEnum.getOrderCode()) {
					return marketingTypeEnum;
				}
			}
			return UNKNOWN;
		}

	}
	

	public static enum MarketingStatusEnum {
    	//卡卷状态--0.初始 1.已上架 2.已下架
    	UNKNOWN("UNKNOWN","未知",-1),//未知；
    	INIT("INIT","初始",0),//初始；
    	UP("UP","上架",1),//上架；
    	DOWN("DOWN","下架",2);//下架；
    	
		
		private String statusType;
		private String desc;
		private int code;
		
		public String getStatusType() {
			return statusType;
		}

		public void setStatusType(String statusType) {
			this.statusType = statusType;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}
		
		private MarketingStatusEnum(String statusType, String desc,int code) {
			this.statusType=statusType;
			this.desc = desc;
			this.code = code;
		}

		public static MarketingStatusEnum parse(String statusType) {
			for (MarketingStatusEnum marketStatusEnum : values()) {
				if (statusType.equalsIgnoreCase(marketStatusEnum.getStatusType())) {
					return marketStatusEnum;
				}
			}
			return UNKNOWN;
		}
		public static MarketingStatusEnum parseStatus(int code) {
			for (MarketingStatusEnum marketStatusEnum : values()) {
				if (code==marketStatusEnum.getCode()) {
					return marketStatusEnum;
				}
			}
			return UNKNOWN;
		}

	}
    public static enum MarketingServiceTypeEnum {
    	/**卡券类型 GENERAL_COUPON：优惠券， GIFT：兑换券， DISCOUNT：折扣券， CASH：代金券，  GROUPON：团购券 ，FIXED:一口价，FREE:免费券
    	FREQUENCY：服务次卡 **/
    	UNKNOWN("UNKNOWN","未知"),//未知；
    	GENERAL_COUPON("GENERAL_COUPON","优惠券"),
    	GIFT("GIFT","兑换券"),
    	DISCOUNT("DISCOUNT","服务折扣券/卡"),
    	CASH("CASH","服务代金券"),
    	GROUPON("GROUPON","服务团购券"),
    	FIXED("FIXED","服务特价券/卡"),
    	FREE("FREE","服务免费券/卡"),
    	FREQUENCY("FREQUENCY","服务次卡");
    	
		
		private String type;
		private String desc;
		
		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		
		private MarketingServiceTypeEnum(String type, String desc) {
			this.type=type;
			this.desc = desc;
		}

		public static MarketingServiceTypeEnum parse(String type) {
			for (MarketingServiceTypeEnum marketServiceTypeEnum : values()) {
				if (type.equalsIgnoreCase(marketServiceTypeEnum.getType())) {
					return marketServiceTypeEnum;
				}
			}
			return UNKNOWN;
		}

	}
    
    public static enum MarketingCouponStatusEnum {
    	/**卡券类型 未开始，进行中，已结束 **/
    	UNKNOWN("UNKNOWN","未知"),//未知；
    	UN_START("UN_START","未开始"),
    	RUNING("RUNING","进行中"),
    	OVER("OVER","已结束");
    	
		
		private String type;
		private String desc;
		
		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		
		private MarketingCouponStatusEnum(String type, String desc) {
			this.type=type;
			this.desc = desc;
		}

		public static MarketingCouponStatusEnum parse(String type) {
			for (MarketingCouponStatusEnum marketCouponStatusEnum : values()) {
				if (type.equalsIgnoreCase(marketCouponStatusEnum.getType())) {
					return marketCouponStatusEnum;
				}
			}
			return UNKNOWN;
		}

	}
    public static enum MarketingReceiveTypeEnum {
    	//领取范围--0 全部用户，1 星客多新用户，2 门店新用户
    	UNKNOWN("UNKNOWN","未知",-1),//未知；
    	ALL("ALL","全部用户",0),
    	PLATFORM_NEW("PLATFORM_NEW","星客多新用户",1),
    	STORE_NEW("STORE_NEW","门店新用户",2);
		private String statusType;
		private String desc;
		private int code;
		
		public String getStatusType() {
			return statusType;
		}

		public void setStatusType(String statusType) {
			this.statusType = statusType;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}
		
		private MarketingReceiveTypeEnum(String statusType, String desc,int code) {
			this.statusType=statusType;
			this.desc = desc;
			this.code = code;
		}

		public static MarketingReceiveTypeEnum parse(String statusType) {
			for (MarketingReceiveTypeEnum marketReceiveTypeEnum : values()) {
				if (statusType.equalsIgnoreCase(marketReceiveTypeEnum.getStatusType())) {
					return marketReceiveTypeEnum;
				}
			}
			return UNKNOWN;
		}
		public static MarketingReceiveTypeEnum parseStatus(int code) {
			for (MarketingReceiveTypeEnum marketReceiveTypeEnum : values()) {
				if (code==marketReceiveTypeEnum.getCode()) {
					return marketReceiveTypeEnum;
				}
			}
			return UNKNOWN;
		}
	}
    
    public static enum MarketingCouponBagTypeEnum {
    	//1自有优惠包，2美团点评，3口碑, 4招行，5京东,6天猫,7其他
    	UNKNOWN("UNKNOWN","未知",-1),//未知；
    	INTERNALLY_ISSUED("INTERNALLY_ISSUED","自有优惠包",1),
    	MEITUAN("MEITUAN","美团点评",2),
    	WORD_OF_MOUTH("WORD_OF_MOUTH","口碑",3),
    	STORE_NEW("STORE_NEW","招行",4),
    	JD("JD","京东",5),
    	TMALL("TMALL","天猫",6),
    	OTHER("OTHER","其他",7);
		private String statusType;
		private String desc;
		private int code;
		
		public String getStatusType() {
			return statusType;
		}

		public void setStatusType(String statusType) {
			this.statusType = statusType;
		}
		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
		
		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}
		
		private MarketingCouponBagTypeEnum(String statusType, String desc,int code) {
			this.statusType=statusType;
			this.desc = desc;
			this.code = code;
		}

		public static MarketingCouponBagTypeEnum parse(String statusType) {
			for (MarketingCouponBagTypeEnum marketingCouponBagTypeEnum : values()) {
				if (statusType.equalsIgnoreCase(marketingCouponBagTypeEnum.getStatusType())) {
					return marketingCouponBagTypeEnum;
				}
			}
			return UNKNOWN;
		}
		public static MarketingCouponBagTypeEnum parseStatus(int code) {
			for (MarketingCouponBagTypeEnum marketingCouponBagTypeEnum : values()) {
				if (code==marketingCouponBagTypeEnum.getCode()) {
					return marketingCouponBagTypeEnum;
				}
			}
			return UNKNOWN;
		}
	}
}